<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<css file="__DATA__/css/base.css"/>
		<link type="text/css" href="__ROOT__/data/ui/css/flick/jquery-ui-1.8.23.custom.css" rel="stylesheet" />
		<script type="text/javascript" src="__ROOT__/data/ui/js/jquery-1.8.0.min.js"></script>
		<script type="text/javascript" src="__ROOT__/data/ui/js/jquery-ui-1.8.23.custom.min.js"></script>
		<script type="text/javascript">
			$(function(){
				$("#tabs").tabs();
			})
		</script>
</head>
<body style="padding:10px;">
    <div class="path">
        <strong>您现在的位置：</strong>
        <a href="#">配置权限</a>
    </div>
    <!-- <div class="send1">
        <a href="__APP__/user/user_add_show" class="current button1">添加用户</a>
    </div> -->
	
<div class="setup">
    <form action="__CONTROL__/addaccess" method="post">
        <input type="hidden" name="rid" value="{$hd.get.rid}"/>
        <div id="hd_rbac">	
		  <?php
            foreach($node as $v){
            ?>
            <h1 style="color:red;"><input type="checkbox"  name="node[]" value="{$v['nid']}" class="check"
                        <empty value="{$v['access']}"><noempty/>checked='checked'</empty>
                />{$v['title']}<strong>({$v['name']})</strong>
            </h1>
            <?php
            if(isset($v['node'])&&is_array($v['node'])){
            foreach($v['node'] as $m){
            ?>
            <table class="table1">
                
                    <tr>
                        <td>
                <span style="maegin-left:10px;"><input type="checkbox"  name="node[]" value="{$m['nid']}" class="check" 
                <empty value="{$m['access']}"><noempty/>checked='checked'</empty>/>{$m['title']}<strong>({$m['name']})</strong>
                    </span>    </td>
                    </tr>
              
                    <?php
                    if(isset($m['node'])&&!empty($m['node'])){
                    ?>
              
                    <tr>
                        <td>
                            <ul style="margin-left:20px;">
                                <?php
                                foreach($m['node'] as $j){
                                ?>
                                <span style="margin-left:5px;">
                                    <input type="checkbox"  name="node[]" value="{$j['nid']}" class="check" 
                                            <empty value="{$j['access']}"><noempty/>checked='checked'</empty>
                                            /> {$j['title']}<strong>({$j['name']})</strong>
                                </span>
                                <?php
                                }
                                ?>
                            </ul></td></tr>
                <?php
                }
                ?>
            </table>
            <?php
            }
            }
            }
            ?>
		

        </div>
        <div style="margin-left:20px;margin-top:20px;">
            <input type="submit" value="修改" class="submit"/>
        </div>
    </form>
</div>
</body>
</html>
